<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="demo">
        烦烦烦烦烦烦
        <span></span>
    </div>
    <script>
   
   var stu = document.getElementById("demo");
   var stu1 = document.querySelector("#demo");
        console.log("stu:",stu);
        console.log("stu1:",stu1);

        console.dir(stu);

        console.log(stu.outerText);
        console.log(stu.tagName);
        

  
    </script>
</body>
</html>